/**
 * 退出登录
 *
 */
import { clearAll } from "@/utils/clear";
import store from "@/store/index";
import router from "@/router";
import { local, session } from "@/utils/local";

export const loginout = () => {
  local.clear();
  session.clear();
  clearAll(store);
  router.replace("/login");
};
